#!/bin/bash
set timeout 300
#set -x
#set HOST_IP [lindex $argv 0]
#spawn scp -r /home/init.sh $HOST_IP:/home/init.sh
for IP in `cat iplist | grep 171 |awk '{print $1}'`;do
    sshpass -p "Huawei12#$" ssh-copy-id -i /root/.ssh/id_rsa.pub -o StrictHostKeyChecking=no root@${IP}
done
